package com.shunya.diskorganizer.tinytypes;

public class Size {
    private final Long size;

    public Size(Long size) {
        this.size = size;
    }

    public Long getSize() {
        return size;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Size size1 = (Size) o;

        if (size != null ? !size.equals(size1.size) : size1.size != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return size != null ? size.hashCode() : 0;
    }

    @Override
    public String toString() {
        return size.toString();
    }
}
